home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 365_02 / versions.ms < prev   
Text File  |  1992-04-04  |  16KB  |  379 lines

  1. .Go 12 "VERSIONS"
  2. .PP
  3. \*E currently works under BSD UNIX, AT&T System-V UNIX, SCO XENIX,
  4. Minix, Coherent, MS-DOS, Atari TOS, OS9/68k, VAX/VMS, and AmigaDos.
  5. This section of the manual provides special information that applies to each
  6. particular version of \*E.
  7. .PP
  8. For all versions except MS-DOS,
  9. the file "Makefile.mix" should be copied to "Makefile",
  10. and then edited to select the correct set of options for your system.
  11. There is more information about this embedded in the file itself.
  12. .NH 2
  13. BSD UNIX
  14. .PP
  15. Temporary files are stored in /tmp.
  16. .PP
  17. You should modify /etc/rc so that
  18. the temp files are preserved when the system is rebooted.
  19. Find a line in /etc/rc which reads
  20. .br
  21. .ti +0.5i
  22. ex4.3preserve /tmp
  23. .PP
  24. or something like that, and append the following line after it:
  25. .br
  26. .ti +0.5i
  27. elvprsv /tmp/elv*
  28. .PP
  29. If you do not have permission to modify /etc/rc, don't fret.
  30. The above modification is only needed to allow you to recover your changes
  31. after a system crash.
  32. You can still run \*E without that modification,
  33. and you can still recover your changes when \*E crashes
  34. or when your dialup modem looses the carrier signal, or something like that.
  35. Only a system crash or power failure could hurt you.
  36. .PP
  37. Both \*E and the real Vi
  38. read initialization commands from a file called ".exrc",
  39. but the commands in that file might work on one but not the other.
  40. For example, "set keywordprg=man" will work for \*E,
  41. but Vi will complain because it doesn't have a "keywordprg" option.
  42. If the warning messages annoy you, then you can edit the config.h file
  43. to change the name of the initialization file ".exrc" to something else,
  44. such as ".elvisrc".
  45. .PP
  46. If you use X windows, you may wish to add "-DCS_LATIN1" to CFLAGS.
  47. This will cause the digraph table and the flipcase option to have default
  48. values that are appropriate for the LATIN-1 character set.
  49. That's the standard character set for X.
  50. .PP
  51. The default keyboard macro time-out value is larger for BSD than it is for
  52. some other systems, because I've had trouble running \*E via rlogin or Xterm.
  53. I guess it takes a while for those keystokes to squirt through the net.
  54. .NH 2
  55. System-V UNIX
  56. .PP
  57. Most SysV UNIX systems use terminfo instead of termcap,
  58. but  the  terminfo  library  doesn't seem to have a standard name.
  59. As shipped, Elvis' Makefile.mix  is  configured  with "LIBS=-lterm".
  60. You may need to change it to "LIBS=-ltermcap" or "LIBS=-lterminfo"
  61. or even "LIBS=-lcurses".
  62. .PP
  63. The /etc/rc file should be modified as described for BSD systems, above.
  64. The only difference is that SysV systems tend to have directories for
  65. initialization, instead of a single large /etc/rc file.
  66. Editor recovery is usually done somewhere in the /etc/rc2.d directory.
  67. .PP
  68. The potential trouble with ".exrc" described above for BSD UNIX applies
  69. to System-V UNIX as well.
  70. .PP
  71. \*E uses control-C as the interrupt key, not Delete.
  72. .NH 2
  73. SCO Xenix
  74. .PP
  75. For Xenix-386, you can use the generic System-V settings.
  76. You may wish to add "-DCS_IBMPC" to CFLAGS, to have the digraph table and
  77. flipcase option start up in a mode that is appropriate for the console.
  78.  
  79. There is a separate group of settings for use with Xenix-286.
  80. It already has "-DCS_IBMPC" in CFLAGS.
  81. .PP
  82. Because Xenix is so similar to System-V, everything I said earlier about
  83. System-V applies to the Xenix version too, except that editor recovery
  84. probably belongs in a directory called /etc/rc.d/8.
  85. .NH 2
  86. Minix
  87. .PP
  88. There are separate settings in Makefile.mix for Minix-PC and Minix-68k.
  89. The differences between these two are that
  90. the 68k version uses ".o" for the object file extension where
  91. the PC version uses ".s", and
  92. the PC version has some extra flags in CFLAGS to reduce the size of \*E.
  93. The PC version also uses tinytcap (instead of the full termcap) to make it smaller.
  94. .PP
  95. Minix-PC users should read the CFLAGS section of this manual very carefully.
  96. You have some choices to make...
  97. .PP
  98. The temporary files are stored in /usr/tmp.
  99. The /usr/tmp directory must exist before you run \*E,
  100. and it must be readable/writable by everybody.
  101. We use /usr/tmp instead of /tmp because
  102. after a system crash or power failure,
  103. you can recover the altered version of a file from the temporary file
  104. in /usr/tmp.
  105. If it was stored in /tmp, though, then it would be lost because /tmp is
  106. normally located on the RAM disk.
  107. .PP
  108. \*E uses control-C as the interrupt key, not Delete.
  109. .NH 2
  110. Coherent
  111. .PP
  112. \*E was ported to Coherent by Esa Ahola.
  113. .PP
  114. \*E is too large to run under Coherent unless you eliminate some
  115. features via the CFLAGS setting.
  116. The recommended settings, in Makefile.mix, produce a working version
  117. of \*E which emulates Vi faithfully, but lacks most of the extensions.
  118. You should read the CFLAGS section of this manual carefully.
  119. .PP
  120. You can probably reduce the size of \*E by using tinytcap.c instead of -lterm.
  121. This would allow you to keep most features of \*E,
  122. at the expense of terminal independence.
  123. (Tinytcap.c has ANSI escape sequences hard-coded into it.)
  124. To use tinytcap, just add "tinytcap.o" to the "EXTRA=" line in the Makefile,
  125. and remove "-lterm" from the "LIBS=" line.
  126. .PP
  127. The temporary files are stored in /tmp.
  128. You should modify your /etc/rc file as described for BSD earlier.
  129. .NH 2
  130. MS-DOS
  131. .PP
  132. \*E was ported to MS-DOS by Guntram Blohm and Martin Patzel.
  133. Willett Kempton added support for the DEC Rainbow.
  134. .PP
  135. Ideally, \*E should be compiled with Microsoft C 5.10 and the standard
  136. Microsoft Make utility,
  137. via the command "make elvis.mak".
  138. This will compile \*E and all related utilities.
  139. .PP
  140. With Microsoft C 6.00, you may have trouble compiling regexp.c.
  141. If so, try compiling it without optimization.
  142. .PP
  143. The "Makefile.mix" file contains a set of suggested settings for compiling
  144. elvis with Turbo-C or Borland C.
  145. (If you have Turbo-C, but not the Make utility,
  146. then you can \fIalmost\fR use the "\*E.prj" file to compile \*E,
  147. but you must explicitly force Turbo-C to compile it with the "medium" memory model.
  148. Most of the related programs [ctags, ref, virec, refont, and wildcard] are
  149. only one file long, so you should have no trouble compiling them.)
  150. The "alias.c" file is meant to be compiled once into an executable named
  151. "ex.exe".
  152. You should then copy "ex.exe" to "vi.exe" and "view.exe".
  153. .PP
  154. \*E stores its temporary files in C:\\tmp.
  155. If this is not satisfactory, then you should edit the CFLAGS line of
  156. your Makefile to change TMPDIR to something else before compiling.
  157. You can also control the name of the temp directory via an environment
  158. variable named TMP or TEMP.
  159. The directory must exist before you can run \*E.
  160. .PP
  161. The TERM environment variable determines how elvis will write to the screen.
  162. It can be set to any one of the following values:
  163. .LD
  164. .ta 1.5i 2.5i
  165.     pcbios    Use BIOS calls on an IBM-PC clone.
  166.     rainbow    Use DEC Rainbow interface.
  167.     ansi    Use ANSI.SYS driver.
  168.     nansi    User faster NANSI.SYS driver.
  169. .DE
  170. .PP
  171. If the TERM variable isn't set, then elvis will automatically select either
  172. the "rainbow" interface (when run on a Rainbow) or "pcbios" (on an IBM clone).
  173. .PP
  174. You may prefer to use NANSI.SYS for speed;
  175. or you may NEED to use ANSI.SYS for a non-clone, such as a lap-top.
  176. If so, you should
  177. install one of these drivers by adding "driver = nansi.sys" (or whatever)
  178. to your CONFIG.SYS file,
  179. and then you should define TERM to be "nansi" (or whatever) by adding
  180. "set TERM=nansi" to your AUTOEXEC.BAT file.
  181. You must then reboot for these changes to take effect.
  182. After that, \*E will notice the "TERM" setting and use the driver.
  183. .PP
  184. Since ".exrc" is not a valid DOS filename,
  185. the name of the initialization file has been changed to "elvis.rc".
  186. Elvis will look for an "elvis.rc" file first in your home directory,
  187. and then in the current directory.
  188. Note that you must set an environment variable named "HOME" to the
  189. full pathname of your home directory, for Elvis to check there;
  190. if "HOME" isn't set, then Elvis will only look in the current directory.
  191. To set "HOME", you would typically add the following line to your
  192. AUTOEXEC.BAT file:
  193. .br
  194. .ti +0.5i
  195. set HOME c:\\
  196. .PP
  197. An ext